package com.wxq.day0420.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Locale;

/**
 * @Author wxq
 * @Date 2021/4/20
 **/
@Controller
public class I18NTestController {
    /**
     * Locale接受请求参数locale值，并存储到session中
     *
     * @param locale
     * @return
     */
    @RequestMapping("/i18nTest")
    public String first(Locale locale) {
        return "first";
    }

}
